<template>
  <div class="app-container">
    <el-button type="primary" @click="importAllIndex">批量导入索引库</el-button>
  </div>
</template>

<script>
import { importIndex } from "@/api/solr";
export default {
  name: "solr_import",
  methods: {
    importAllIndex() {
      importIndex().then(res => {
        this.$message({
          message: "索引库导入成功",
          type: "success"
        });
      });
    }
  }
};
</script>
